import { Sequelize } from 'sequelize';

export const sequelize = new Sequelize('test', 'sa', "123456", {
    host: 'localhost',
    dialect: 'sqlite' /* one of 'mysql' | 'postgres' | 'sqlite' | 'mariadb' | 'mssql' | 'db2' | 'snowflake' | 'oracle' */,
    storage: './test.db'
    // dialectOptions: {
    //     trustedConnection: true,
    //     options: {
    //         encrypt: false // 如果使用的是 SQL Server 的非加密连接
    //     }
    // }
});


// import { Sequelize } from 'sequelize';

// export const sequelize = new Sequelize({
//     dialect: 'sqlite',
//     storage: './blog.db'
// });
